package com.heima.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.search.pojo.Item;
import com.heima.search.pojo.RequestParams;
import com.hmall.common.result.PageResult;

import java.util.List;
import java.util.Map;

public interface SearchService extends IService<Item> {
    void dbToEs();

    void pageTest();

    void noPool();

    PageResult listItems(RequestParams params);

    Map<String, List<String>> filters(RequestParams params);

    List<String> suggestion(String key);

    void myMqItemListenerInsertOrUpdate(Long id);

    void myMQItemListenerDelete(Long id);
}
